package com.ty.day6;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/13 14:01
 */
public class One {
    public static void main(String[] args) {
        int[] arr = {20, 33, 24, 18, 28, 23, 77};
        int min = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i] < min) {
                min = arr[i];
            }
        }
        System.out.println(min);
    }
}
